package com.bw.service.impl;

import com.bw.entity.TbAdm;
import com.bw.entity.TbUserTem;
import com.bw.entity.vo.Admvo;
import com.bw.mapper.AdmMapper;
import com.bw.service.AdmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@SuppressWarnings("all")
public class AdmServiceImpl implements AdmService {
    @Autowired
    private AdmMapper admMapper;
    //用户管理列表
    @Override
    public List<Admvo> admlist(String mohu) {
        return admMapper.admlist(mohu);
    }
    //批量删除
    @Override
    public String[] del(String id) {
      return admMapper.del(id);
    }

    @Override
    public TbUserTem admadd(TbAdm adm) {
        return admMapper.admadd(adm);
    }
    @Override
    public TbAdm admupdate(TbAdm adm) {
        return admMapper.admupdate(adm);
    }

    @Override
    public TbAdm findByAdmid(int id) {
        return admMapper.findByAdmid(id);
    }


}
